function checkForm() {

  //获取用户名输入项
  var userNname = document.getElementById("userNname");
  var uName = userNname.value;
  if (uName.length < 1 || uName.length > 10) {
    trip("name_trip", "账号长度为1-10位!!");
    return false;
  } else {
    trip("name_trip", "OK!!");

  }

  //密码长度大于6 和确认必须一致
  var password = document.getElementById("password");
  var userPass = password.value;
  if (userPass.length < 6) {
    trip("password_trip", "密码要>6位!!");
    return false;
  } else {
    trip("password_trip", "OK!!");
  }

  //获取确认密码框的值 var
  var surePassword = document.getElementById("surePassword");
  var surePass = surePassword.value;
  if (userPass != surePass) {
    trip("surePassword_trip", "两次密码不一致!!");
    return false;
  }
}